Regular Object Types
نویسندگان
چکیده
Regular expression types have been proposed as a foundation for statically typed processing of XML and similar forms of tree-structured data. To date, however, regular expression types have been explored mainly in the setting of special-purpose languages (e.g., XDuce, CDuce, and XQuery) whose type systems were designed around regular expression types \from the ground up." The goal of the Xtatic language is to bring regular expression types to a broader audience by presenting them as a lightweight extension of a popular object-oriented language, C. We develop here the formal core of the Xtatic design|a combination of the tree-structured data model of XDuce with the classes-and-objects data model of a conventional object-oriented language. Our tool for this investigation is a tiny language called FX, whose features are drawn from Featherweight Java (FJ) and from the core of XDuce. Points of interest include a smooth interleaving of the two value spaces, in which XDuce's tree structures are grafted into of FJ's class hierarchy while objects and object types play the role of XDuce's label values and label types; a \semantic" de nition of the subtype relation, inherited from XDuce and extended to objects; and a natural encoding of XML documents and their schemas using a simple form of singleton classes.
منابع مشابه
Comparing the accuracy of pixel and object-based classification methods in mapping vegetation types (Case study: Marjan Boroujen)
This article has no abstract.
متن کاملRUN, Xtatic, RUN: EFFICIENT IMPLEMENTATION OF AN OBJECT-ORIENTED LANGUAGE WITH REGULAR PATTERN MATCHING
RUN, Xtatic, RUN: EFFICIENT IMPLEMENTATION OF AN OBJECT-ORIENTED LANGUAGE WITH REGULAR PATTERN MATCHING Michael Y. Levin Benjamin C. Pierce Schema languages such as DTD, XML Schema, and Relax NG have been steadily growing in importance in the XML community. A schema language provides a mechanism for defining the type of XML documents; i.e., the set of constraints that specify the structure of X...
متن کاملA Complete Type Inference System for Subtyped Recursive Types
Since record polymorphism is one of essential factors for object-oriented languages, various approaches to incorporate record polymorphism into type systems have been proposed to lay the foundation for object-oriented languages. Recursive types, which are essentially types of lists or trees, are major programming tools. In object-oriented languages, a pseudo variable \self" has a recursive type...
متن کاملImage volume analysis of omnidirectional parallax regular-polyhedron three-dimensional displays.
Three-dimensional (3D) displays having regular-polyhedron structures are proposed and their imaging characteristics are analyzed. Four types of conceptual regular-polyhedron 3D displays, i.e., hexahedron, octahedron, dodecahedron, and icosahedrons, are considered. In principle, regular-polyhedron 3D display can present omnidirectional full parallax 3D images. Design conditions of structural fac...
متن کاملتوسعه دو مدل ریاضی کارا برای مسئله کولهپشتی چند انتخابی فازی
Multi-choice knapsack problem is a branch of regular knapsack problem where the objects are classified in different classes and each class has one and only one representative in final solution. Although it is assumed that each object belongs to just one class, sometimes this assumption is not valid in real problems. In this case an object may belong to the several classes. In fuzzy multi-choic...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2003